﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace RN.ERP.Entity
{
    /// <summary>
    /// 管理目录 - 权限定义，定义角色和用户相对于功能的权限
    /// </summary>
    public class MDPermission
    {
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Int32 ID { get; set; }
        /// <summary>
        /// 应用代码
        /// </summary>
        [Key, Column(Order = 0)]
        public Int32 AppID { get; set; }
        /// <summary>
        /// 功能码
        /// </summary>
        [Key, Column(Order = 1)]
        public Int32 FuncID { get; set; }
        /// <summary>
        /// 功能类型
        /// </summary>
        [Key, Column(Order = 2)]
        public Byte FuncType { get; set; }
        /// <summary>
        /// 实体(角色、用户)代码
        /// </summary>
        [Key, Column(Order = 3)]
        public Guid EntityID { get; set; }
        /// <summary>
        /// 是否允许
        /// </summary>
        public Boolean Allow { get; set; }
    }
}
